package com.example.administrator.nurse.fragment;

import android.view.View;

import com.example.administrator.nurse.R;
import com.example.administrator.nurse.base.BaseFragment;
import com.example.administrator.nurse.present.VisitSummaryData;
import com.example.administrator.nurse.widget.ChartTableView;

import java.util.ArrayList;

/**
 * Created by huhaichao on 2017/2/5.
 */
//配液管理 待校对
public class LiquorNoProofreadFragment extends BaseFragment{

    private ChartTableView chartTableView;
    private ArrayList<VisitSummaryData> dataList;

    @Override
    protected void initView(View rootView) {
    chartTableView = (ChartTableView) rootView.findViewById(R.id.chartTableView_visitSummary);
        dataList = new ArrayList<>();
        dataList.add(new VisitSummaryData("刘某",23,35,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("萌萌",22,42,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("秀秀",14,24,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("光光",66,99,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("瑞瑞",42,34,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("美美",24,44,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("笑笑",24,77,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("狒狒",87,69,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("飞飞",97,45,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("肥肥",69,38,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("小明",28,68,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("小红",27,34,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("刘某",23,35,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("萌萌",22,42,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("秀秀",14,24,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("光光",66,99,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("瑞瑞",42,34,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("美美",24,44,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("笑笑",24,77,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("狒狒",87,69,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("飞飞",97,45,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("肥肥",69,38,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("小明",28,68,"2017.2.30","待校对",100));
        dataList.add(new VisitSummaryData("小红",27,34,"2017.2.30","待校对",100));
        //将数据传入自定义控件里
         chartTableView.setDataList(dataList);
    }

    @Override
    public int setLayoutId() {
        return R.layout.liquor_no_configuration_fragment;
    }

    @Override
    protected void onFailure(int requestCode, Object object, String errorMsg) {

    }

    @Override
    protected void onSuccess(int requestCode, Object object, String response) {

    }
}
